package com.lwt.service;

import com.lwt.po.Type;

import java.util.List;

/**
 * @program: blog
 * @author: 关键我是大怪
 * @create: 2021-07-30 14:07
 */
public interface TypeService {

    int saveType(Type type);

    Type getType(Long id);

    List<Type> getAllType();

    List<Type> getAllTypeAndBlog();

    Type getTypeByName(String name);

    int updateType(Type type);

    void deleteType(Long id);
}
